//
//  UserModel.h
//  itboye_jsq_ios
//
//  Created by Rajon on 15/12/5.
//  Copyright © 2015年 itboye. All rights reserved.
//

#import "BaseModel.h"


@interface UserModel : BaseModel <NSCoding>

/*
 "add_uid" = 0;
 birthday = 1450422136;
 "change_tip" = 0;
 coin = "0.00";
 "default_address" = 0;
 email = "1561656@163.com";
 "email_validate" = 0;
 "error_tip" = 0;
 exp = "0.0";
 frozencoin = "0.00";
 head = "http://jsq.itboye.com/api.php/Picture/index?id=86";
 id = 40;
 idcode = 145V;
 "identity_validate" = 0;
 idnumber = "";
 "invite_id" = 0;
 "last_login_ip" = "115.216.99.251";
 "last_login_time" = 1450422136;
 login = 3;
 mobile = 12345678900;
 nickname = "\U521d\U6765\U4e4d\U5230";
 password = bcd15919607e8c0485d04918dcc414ff;
 "phone_validate" = 1;
 qq = "";
 "qq_openid" = "";
 realname = "";
 "reg_ip" = "0.0.0.0";
 "reg_time" = 1450422136;
 score = 0;
 sex = 0;
 "sina_openid" = "";
 status = 1;
 "taobao_openid" = "";
 uid = 40;
 "update_time" = 1453078282;
 username = M12345678900;
 "weixin_bind" = 0;
 wxopenid = "";
 */

@property (nonatomic, copy) NSString *username; // 登录账户名，如果是type=3，账户名必须是手机格式（11位数字）
@property (nonatomic, copy) NSString *password; // 密码
@property (nonatomic, copy) NSString *sex; // 性别，0: 女，1: 男，默认0
@property (nonatomic, copy) NSString *email; // 邮箱
@property (nonatomic, copy) NSString *uid; // 用户ID
@property (nonatomic, copy) NSString *head; // 头像
@property (nonatomic, copy) NSString *error_tip; // 故障推送开关（在设置中），1是推送，0是不推送
@property (nonatomic, copy) NSString *change_tip; // 滤芯更换提醒（在设置中），1是推送，0是不推送
@property (nonatomic, copy) NSString *nickname; // 昵称
@property (nonatomic, copy) NSString *mobile;//手机号
@property (nonatomic, copy) NSString *reg_from;//登录类型 2是微信登录
@property (nonatomic, copy) NSString *wxopenid;//是否绑定
@property (nonatomic, copy) NSString *allowdelpost; //是否允许删除帖子
@property (nonatomic, copy) NSString *allowstickthread;//是否允许置顶帖子
@property (nonatomic, copy) NSString *allowdigestthread;//是否允许精华主题
@property (nonatomic, copy) NSString *allowpost;//是否允许发言
@property (nonatomic, copy) NSString *fid;//权限所在论坛 0 全部 1 水族 2 宠物
/**
 *  获取当前对象的字典集合，空值、空对象都不会添加进来
 *
 *  @return NSDictionary
 */
- (NSMutableDictionary *)getDictionary;

- (NSString *)description;

@end
